#include "stdafx.h"
#include "SingleInstanceChecker.h"

#define wxUSE_SNGLINST_CHECKER 1
#include <wx/wx.h>
#include <wx/snglinst.h>

struct SingleInstanceChecker::pimpl_t
{
    wxSingleInstanceChecker checker;

    pimpl_t(wxString instance_name) : checker(instance_name) {}
};

SingleInstanceChecker::SingleInstanceChecker(std::string instance_name)
: pimpl_(new pimpl_t(instance_name))
{
}

SingleInstanceChecker::~SingleInstanceChecker(void)
{
}

bool SingleInstanceChecker::IsAnotherRunning(void)
{
    return pimpl_->checker.IsAnotherRunning();
    return false;
}